package org.vectrics.selenium;

import org.apache.log4j.Logger;
//import org.openqa.selenium.server.SeleniumServer;
//import org.vectrics.SystemException;

public class SeleniumServerThread extends Thread {
	private Logger log = Logger.getLogger(SeleniumServerThread.class);

	public void terminate() {
		super.interrupt();
	}
	
	@Override
	public void run() {
		try {
			//String[] args = {"-interactive"};
			String[] args = {};
			log.info("Starting Selenium Server");
			//SeleniumServer.main(args);		
			log.info("Done running Selenium Server");
		} catch (Exception ex) {
			log.error("Exception running selenium server", ex);
			//throw new SystemException("Exception running selenium server", ex);
		}
	}

}
